<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
        "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">

<hibernate-mapping package="org.springside.modules.security.domain">
    <class name="Portlet" table="portlet" dynamic-insert="true" dynamic-update="true">
		<id name="id" type="integer">
			<column name="id" />
			<generator class="native" >
				<param name="sequence">SYSTEM_PORTLET_ID_SEQ</param>
			</generator>
		</id>
		<property name="name" type="string">
			<column name="name" length="50" not-null="true" />
		</property>
		<property name="url" type="string">
			<column name="url" length="1000" />
		</property>
		<property name="state" type="integer">
			<column name="state"  />
		</property>
		<property name="path" type="string">
			<column name="path" length="50" />
		</property>
		<property name="counts" type="integer">
			<column name="counts"  />
		</property>				
		<property name="positionX" type="integer">
			<column name="positionX"  />
		</property>		
		<property name="positionY" type="integer">
			<column name="positionY"  />
		</property>		
		<property name="nameHK" type="string">
			<column name="name_HK" length="50"  />
		</property>
		<property name="nameUS" type="string">
			<column name="name_US" length="50" />
		</property>
        <set name="portletParameter" inverse="true" >
      		<key>
                <column name="portlet_id" />
            </key>
            <one-to-many class="org.springside.modules.security.domain.PortletParameter" />
        </set>
    </class>
</hibernate-mapping>
